#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
using namespace std;

int main()
{
   
    signal(SIGCHLD, SIG_IGN); 
    for(int i = 0; i < 10; i++)
    {
        pid_t id = fork();
        if(0 == id)
        {
            cout << "child is running" << endl;
            sleep(5);
            exit(10);
        }
    }
    while(true) sleep(1);
    return 0; 
}